<?php
$selected_cat = 1;
if ($query->num_rows() > 0) {
    $aRow = $query->row();
    $selected_cat = $aRow->catid;
    $image_path = './assets/actuimg/thumbs/' . $aRow->img;
    if (file_exists($image_path)) {
        $image_path = base_url() . 'assets/actuimg/thumbs/' . $aRow->img;
    } else {
        $image_path = base_url() . 'assets/noimage.gif';
    }
}
$selected_cat_setting = array(
    'table_name' => 'catactu',
    'key_field' => 'id',
    'value_field' => 'nomfr'
);
?>
<div id="wrapper-content">    
    <?php echo form_open_multipart('actualite/update_news/' . $aRow->id . '/' . $per_page . '/' . $off_set); ?>
    <div id="viewactu" align="center">
        <div align="center" id="titre_viewactu" >MODIFIER ACTUALITE</div>
        <table id="formactu" cellpadding="10px" cellspacing="0">
            <tr>
                <td><label for="fr_title">Titre (Francais)</label></td>
                <td><input type="text" size="50" name="txtFrTitle" value="<?php echo $aRow->nomfr; ?>"><?php echo form_error('txtFrTitle'); ?></td>
            </tr>
            <tr>
                <td><label for="en_title">Titre (Anglais)</label></td>
                <td><input type="text" size="50" name="txtEngtitle" value="<?php echo $aRow->nomen; ?>"></td>
            </tr>
            <tr>
                <td><label for="spa_title">Titre (Espagnol)</label></td>
                <td><input type="text" size="50" name="txtSpainTitle" value="<?php echo $aRow->nomes; ?>"></td>
            </tr>
            <tr>
                <td><label for="ger_title">Titre (Allemagne)</label></td>
                <td><input type="text" size="50" name="txtGermanTitle" value="<?php echo $aRow->nomal; ?>"></td>
            </tr>
            <tr>
                <td><label for="dut_title">Titre (Hollande)</label></td>
                <td><input type="text" size="50" name="txtDutchTitle" value="<?php echo $aRow->nomho; ?>"></td>
            </tr>
            <tr>
                <td><label for="cat">Cat&eacute;gorie</label></td>
                <td><?php echo form_dropdown('categorie', dropdown_data($selected_cat_setting), $selected_cat) ?></td>
                <td></td>
            </tr>
            <tr>
                <td>IMAGE:</td>
                <td><img border="0" width="100px" src="<?php echo $image_path; ?>"/><input type="file" name="userfile" size="20"></td>
            </tr>
            <tr>
                <td valign="top"><a href="#" id="frDesLink">Description(Francais)</a></td>
                <td colspan="2">
                    <div class="fckFrenchEditor" style="display: none;border: 1px solid;">
                        <?php
                        $data = array('name' => 'txtFrDes',
                            'id' => 'txtDes',
                            'width' => '500',
                            'height' => '400', 'value' => $aRow->descriptionfr);
                        echo form_fckeditor($data);
                        ?>
                    </div>
                </td>
            </tr>
            <tr>
                <td valign="top"><a href="#" id="enDesLink">Description(Anglais)</a></td>
                <td colspan="2">
                    <div class="fckEnglishEditor" style="display: none;border: 1px solid;">
                        <?php
                        $data = array('name' => 'txtEnDes',
                            'id' => 'txtDes',
                            'width' => '500',
                            'height' => '400', 'value' => $aRow->descriptionen);
                        echo form_fckeditor($data);
                        ?>
                    </div>
                </td>
            </tr>
            <tr>
                <td valign="top"><a href="#" id="spDesLink">Description(Espagnol)</a></td>
                <td colspan="2">
                    <div class="fckSpanishEditor" style="display: none;border: 1px solid;">
                        <?php
                        $data = array('name' => 'txtSpDes',
                            'id' => 'txtDes',
                            'width' => '500',
                            'height' => '400', 'value' => $aRow->descriptiones);
                        echo form_fckeditor($data);
                        ?>
                    </div>
                </td>
            </tr>
            <tr>
                <td valign="top"><a href="#" id="germanDesLink">Description(Allemagne)</a></td>
                <td colspan="2">
                    <div class="fckGermanEditor" style="display: none;border: 1px solid;">
                        <?php
                        $data = array('name' => 'txtGeDes',
                            'id' => 'txtDes',
                            'width' => '500',
                            'height' => '400', 'value' => $aRow->descriptional);
                        echo form_fckeditor($data);
                        ?>
                    </div>
                </td>
            </tr>
            <tr>
                <td valign="top"><a href="#" id="dutchDesLink">Description(Hollande)</a></td>
                <td colspan="2">
                    <div class="fckDutchEditor" style="display: none;border: 1px solid;">
                        <?php
                        $data = array('name' => 'txtDuctchDes',
                            'id' => 'txtDes',
                            'width' => '500',
                            'height' => '400', 'value' => $aRow->descriptionho);
                        echo form_fckeditor($data);
                        ?>
                    </div>
                </td>
            </tr>
            <tr>
                <td></td>
                <td><input type="submit" name="submit" value="Enregistrer"/a></td>
                </td>
            </tr>

        </table>
        </form>
    </div>
</div>